﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrimaryAlgorithm.StrStr
{
    /// <summary>
    /// 已完成(KMP 算法)
    /// </summary>
    class MainProject
    {
        static void Main(string[] args)
        {
            int[] nums = new int[] { 2, 2, 2, 1 };
            //Console.WriteLine(SingleNumber(nums));
            Console.ReadKey();
        }
        public static int StrStr(string haystack, string needle)
        {
            return haystack.IndexOf(needle);
        }
    }
}
